	<include file="Public/admin/header.html" title="用户管理" keywords="" />
	<div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main">		
		<div class="row">
			<ol class="breadcrumb">
				<li><a href="#"><span class="glyphicon glyphicon-home"></span></a></li>
				<li class="active">用户管理</li>
			</ol>
		</div><!--/.row-->
		
		<div class="row">
			<div class="col-lg-12">
			<div class="panel panel-primary">
					<div class="panel-heading"><span class="glyphicon glyphicon-cog"></span>用户管理</div>
					<div class="panel-body">
				<div class="col-md-6">
						 <h3>用户列表</h3>
                  <table class="table table-bordered">    
                  <tr>
                      <th>ID</th>
                      <th>用户名</th>
                      <th>角色</th>
                      <th>操作</th>
                      </tr>
                      <volist name="page" id="vo">
                      <tr>
                          <td><{$vo.id}></td>
                          <td><{$vo.username}></td>
                          <td> 
                          <if condition="$vo.type eq 1 ">
						           牛逼站长
						         <elseif condition="$vo.type eq 2 "/>
						         管理员
						          <else />
						          会员
						          </if>
                          </td>
                          <td>
                              <a href="__URL__/modify?id=<{$vo.id}>" data-toggle="modal" data-target="#myModal">
						        <span class="glyphicon glyphicon-pencil" ></span></a>
									&nbsp;&nbsp;   
									<a href="__URL__/del?id=<{$vo.id}>" class="trash"><span class="glyphicon glyphicon-trash"></span></a>
                          </td>
                      </tr>
                    </volist>  
                  </table>
						</div>
						
						<div class="col-md-6">
                  <h3>增加用户</h3>
						</div>
						
						<div class="col-md-6">
						<form class="form-horizontal" action="__URL__/add/" method="post">
							<fieldset>
							<!-- Name input-->
								<div class="form-group">
									<label class="col-md-3 control-label" >用户名</label>
									<div class="col-md-9">
									<input  name="username" type="text" class="form-control" placeholder="username">
									</div>
								</div>
								<!-- Name input-->
								
								<div class="form-group">
									<label class="col-md-3 control-label" for="email">初始密码</label>
									<div class="col-md-9">
										<input name="password" type="text" class="form-control" placeholder="************" >
									</div>
								</div>	
								
										<div class="form-group">
										   <label class="col-md-3 control-label">权限</label>
                         <div class="col-md-9">
                            <input  name="type" type="radio" value="2"><label>管理员</label> 	&nbsp;&nbsp;  	&nbsp;&nbsp;  
                            <input  name="type" type="radio"  value="3" checked><label>普通用户</label>
                          </div>		
								</div>			
								
								<!-- Form actions -->
								<div class="form-group">
									<div class="col-md-12 widget-right">
										<button type="submit" class="btn btn-primary btn-md pull-right">提交</button>
									</div>
								</div>
							</fieldset>
						</form>
				</div>
				
				</div>
				</div>
			
				</div><!--/.col-->	
		</div><!--/.row-->
	
		
<!-- 模态框（Modal） -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog"    >
   <div class="modal-dialog">
      <div class="modal-content">
         <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" 
                aria-hidden="true">×
            </button>
            <h4 class="modal-title" id="myModalLabel">
              修改
            </h4>
         </div>
         <div class="modal-body">
            按下 ESC 按钮退出。
         </div>
         <div class="modal-footer">
            <button type="button" class="btn btn-default" 
                data-dismiss="modal">关闭
            </button>
            <button type="button" class="btn btn-primary">
               提交更改
            </button>
         </div>
      </div><!-- /.modal-content -->
   </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<script>
   $(function () { $('#myModal').modal({
      keyboard: true
   })});
</script>	
	
	</div>	<!--/.main-->

	<style>
	.panel-heading{
     height:45px;
     padding: 0px 0px 0px 10px;
}
	</style>	  

<script src="__PUBLIC__/js/jquery-1.11.1.min.js"></script>
<script src="__PUBLIC__/js/bootstrap.min.js"></script>
<script type="text/javascript">	$(document).ready(function() {  $("#user").addClass("active").show(); }	);</script>	
</body>

</html>
